<?php /*a:3:{s:55:"E:\wamp64\www\tp5\miqicms\app\home\view\doc\doccon.html";i:1667708298;s:56:"E:\wamp64\www\tp5\miqicms\app\home\view\public\base.html";i:1667708288;s:55:"E:\wamp64\www\tp5\miqicms\app\home\view\public\sep.html";i:1667309099;}*/ ?>
<!DOCTYPE html>
<html style="background-color: #f5f5f5;">
<head>
  <meta charset="utf-8" />
  <title><?php echo htmlentities($seoconfig['title']); ?></title>
  <meta content="<?php echo htmlentities($seoconfig['description']); ?>" name="description">
  <meta content="<?php echo htmlentities($seoconfig['keywords']); ?>" name="keywords">
  <meta name="renderer" content="webkit" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/layui/css/layui.css" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/css/global.css" />
  <link rel="stylesheet" type="text/css" href="http://127.0.0.1:8000/static/theme/blueideal/css/icon.css" />

  <style>
    .header {
      border-bottom: 1px solid #404553;
      border-right: 1px solid #404553;
    }
  </style>
</head>
<body class="fly-full">
<!-- 导航开始 -->
<div class="fly-header ">
  <!-- 粒子特效 -->
  <div id="particles-js">

  </div>
  <!-- 粒子特效结束 -->
  <div class="layui-container">
    <a class="fly-logo" href="<?php echo url('index/index'); ?>"> <img src="http://127.0.0.1:8000/static/theme/blueideal/images/logo.png" alt="layui" /> </a>
    <ul class="layui-nav fly-nav layui-hide-xs">
      <li class="layui-nav-item <?php if($modulename == 'index'): ?> layui-this<?php endif; ?>"><a href="<?php echo url('index/index'); ?>" > 首页</a></li>
      <li class="layui-nav-item <?php if($modulename == 'doclist'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('doc/doclist'); ?>">全部文档</a></li>
      <li class="layui-nav-item <?php if($modulename == 'category'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('doc/doccate'); ?>">分类</a></li>
      <li class="layui-nav-item <?php if($modulename == 'album'): ?> layui-this<?php endif; ?> layui-this</if>"> <a href="<?php echo url('album/index'); ?>" >专辑</a></li>
      <?php if(is_array($navlist['main']) || $navlist['main'] instanceof \think\Collection || $navlist['main'] instanceof \think\Paginator): $i = 0; $__LIST__ = $navlist['main'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
        <li class="layui-nav-item"> <a href="<?php echo htmlentities($vo['link']); ?>" <?php if($vo['target'] == 1): ?> target="_blank"<?php endif; ?>><?php echo htmlentities($vo['name']); ?></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
    <ul class="layui-nav fly-nav-user">
      <!-- 未登入的状态 -->
      <?php if($visitor['id'] == ''): ?>
        <li class="layui-nav-item"> <a href="<?php echo url('user/login'); ?>">登入</a> </li>
        <li class="layui-nav-item"> <a href="<?php echo url('user/register'); ?>">注册</a> </li>
      <?php endif; ?>
      <!-- 登入后的状态 -->
      <?php if($visitor['id'] > 0): ?>
        <li class="layui-nav-item">
          <a class="fly-nav-avatar" href="<?php echo url('ucenter/index'); ?>">
            <cite class="layui-hide-xs"><?php echo htmlentities(getusername($uid)); ?></cite>
            <i class="layui-badge fly-badge-vip layui-hide-xs">积分<?php echo htmlentities(getuserscore($uid)); ?></i>
            <img src="<?php echo htmlentities(getavatar($uid)); ?>">
          </a>
          <dl class="layui-nav-child">
            <dd><a href="<?php echo url('ucenter/index'); ?>"><i class="layui-icon">&#xe65e;</i>积分明细</a></dd>
            <dd><a href="<?php echo url('ucenter/index'); ?>"><i class="layui-icon">&#xe620;</i>用户中心</a></dd>
            <dd><a href="<?php echo url('ucenter/usermail'); ?>"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a></dd>
            <dd><a href="<?php echo url('ucenter/mydoclist'); ?>"><i class="layui-icon">&#xe68e;</i>我的文档</a></dd>
            <hr style="margin: 5px 0;">
            <dd><a href="<?php echo url('user/logout'); ?>" style="text-align: center;">退出</a></dd>
          </dl>
        </li>
      <?php endif; ?>
    </ul>
  </div>

</div>
<!-- 导航结束 -->
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/layui.js"></script>
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/particles.min.js"></script>
<script type="text/javascript" src="http://127.0.0.1:8000/static/theme/blueideal/layui/app.js"></script>

<!-- 二级页次级导航结束 -->
<div class="layui-hide-xs">
    <div class="fly-panel fly-column">
        <div class="layui-container">
        <span class="layui-breadcrumb">
          <a href="<?php echo config('web_config.site_url'); ?>">首页</a>
          <?php echo getnavlist($id,$modulename,$actionname); ?>
        </span>
            <div class="fly-column-right layui-hide-xs">
                <span class="fly-search"><i class="layui-icon"></i></span>
                <a href="<?php echo url('doc/doc_share'); ?>" class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe681;</i> 上传文档</a>
            </div>
        </div>
    </div>
</div>


<!-- 广告 -->
<div class="layui-container mb20">
  <div class="banner-wrap">
    <?php $ad = ad_store(2); ?>
    <?php echo htmlspecialchars_decode($ad); ?>
    <!--矩形广告位-->
  </div>
</div>
<!-- 广告 end-->



<!-- 主体开始 -->
<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <!-- 左侧开始 -->
    <div class="layui-col-md9 content detail">
      <div class="fly-panel detail-box  pb5">
        <!-- 文档头部 -->
        <h2 style="width: 80%;"><i class="ic ic-<?php echo htmlentities(strtolower($info['ext'])); ?>" style="top: -2px;"></i><?php echo htmlentities($info['title']); ?></h2>
        <div class="jubaodiv">
            <span class="layui-btn layui-btn-xs jubao">举报</span>
            <span class="layui-btn layui-btn-xs layui-bg-blue shop-collect">收藏</span>
        </div>

        <div class="fly-detail-info">
          <dd>
            <span><?php echo htmlentities($info['intro']); ?></span>
          </dd>
        </div>
        <!-- 文档头部结束 -->
      </div>


      <!-- 文档内容开始 -->

      <!-- 主内容 -->

        <div class="fly-panel detail-box doccon ">
          <?php $ad = ad_store(1); ?>
          <?php echo htmlspecialchars_decode($ad); $file_name = docfile($info['html'],$info['viewurl']); ?>
          <iframe src="<?php echo url('/home/doc/pdfview',array('file'=>$file_name)); ?>" width="100%" height="1000"></iframe>
        </div>
        <!-- 预览结束 购买文档 -->
      <!-- 文档内容结束 -->
    </div>
    <!-- 左侧结束 -->

    <!-- 右侧开始 -->
    <div class="layui-col-md3">
      <!-- 文档信息 -->
      <div class="fly-panel">
        <div class="fly-panel-main docinfo">
          <ul class="layui-timeline">
            <li class="layui-timeline-item pb5">
              <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>贡献者：<?php echo htmlentities(getusername($info['uid'])); ?> </span></div>
              </div>
            </li>

            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>售价：<?php echo htmlentities($info['score']); ?> <?php echo config('web_config.score_name'); ?> </span></div>
              </div>
            </li>
            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>时间：<?php echo htmlentities(fdate($info['create_time'])); ?></span></div>
              </div>
            </li>
            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>大小：<?php echo htmlentities(round($info['filesize'] / '1024',0)); ?>KB</span></div>
              </div>
            </li>
            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>页数：<?php echo htmlentities($info['page']); ?>页</span></div>
              </div>
            </li>
            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>浏览：<?php echo htmlentities($info['hits']); ?></span></div>
              </div>
            </li>
            <li class="layui-timeline-item pb5">
              <i class="layui-icon font12 layui-timeline-axis">&#xe63f;</i>
              <div class="layui-timeline-content layui-text">
                <div class="layui-timeline-title"><span>下载：<?php echo htmlentities($downnum); ?></span></div>
              </div>
            </li>
          </ul>
            <a class="layui-btn layui-btn-fluid layui-btn-normal"  href="<?php echo docfile($info['html'],$info['fileurl']); ?>" style="width: 100%;" id="download">下载本文档</a>

        </div>
      </div>
      <!-- 文档信息结束 -->
      <dl class="fly-panel fly-list-one">
        <dt class="fly-panel-title">编辑推荐</dt>
        <?php $list = new \app\common\taglib\ht\tagLists();$data = $list->getLists("lists","*","","0","create_time desc","0","60","0","min","max","0","0","0","0","","","0","1","0","1","0");if(empty($data['list']) || (($data['list'] instanceof \think\Collection || $data['list'] instanceof \think\Paginator ) && $data['list']->isEmpty())): ?>
            <div class="fly-none">没有相关数据</div>
        <?php endif; if(is_array($data['list']) || $data['list'] instanceof \think\Collection || $data['list'] instanceof \think\Paginator): $i = 0;$__LIST__ = is_array($data['list']) ? array_slice($data['list'],0,10, true) : $data['list']->slice(0,10, true); if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
            <dd>
              <a href="<?php echo url('doc/doccon',array('id'=>$vo['id'])); ?>"><i class="ic ic-<?php echo htmlentities(strtolower($vo['ext'])); ?>"></i> <?php echo htmlentities($vo['title']); ?> </a>
              <span><i class="iconfont icon-liulanyanjing"></i>&nbsp;<?php echo htmlentities($vo['hits']); ?></span>
            </dd>
          <?php endforeach; endif; else: echo "" ;endif; ?>
        
      </dl>

    </div>
    <!-- 右侧开始结束 -->
  </div>
</div>
<script>
  layui.config({
    version: "3.0.0"
    ,base: 'http://127.0.0.1:8000/static/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
  }).extend({
    fly: 'index'
  }).use('fly');
</script>
<!-- 主体结束 -->

<div class="fly-footer">
  <p>
    <?php if(is_array($navlist['bottom']) || $navlist['bottom'] instanceof \think\Collection || $navlist['bottom'] instanceof \think\Paginator): $i = 0; $__LIST__ = $navlist['bottom'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
      <a href="<?php echo htmlentities($vo['link']); ?>" alt="<?php echo htmlentities($vo['alias']); ?>" <?php if($vo['target'] > 1): ?> target="_blank"<<?php endif; ?>><?php echo htmlentities($vo['name']); ?></a>
    <?php endforeach; endif; else: echo "" ;endif; ?>
  </p>
  <p>2022 &copy; <a href="http://www.boyanglee.com/" target="_blank">迷奇出品，必属精品</a><?php echo config('web_config.site_icp'); ?> 客服电话：<?php echo config('web_config.site_tel'); ?></p> <div style="display: none;">
  <?php echo config('web_config.statistics_code'); ?>
</div>
</div>
</body>
</html>